@echo off
start consul agent -dev
REM 启动微服务 1
cd C:\Users\zartt\GolandProjects\src\book-micro\adminSrv
go build main.go
start main.exe

REM 启动微服务 2
cd C:\Users\zartt\GolandProjects\src\book-micro\userSrv
go build main.go
start main.exe

REM 启动微服务 3
cd C:\Users\zartt\GolandProjects\src\book-micro\todoSrv
go build main.go
start main.exe

REM 启动微服务 4
cd C:\Users\zartt\GolandProjects\src\book-micro\bookSrv
go build main.go
start main.exe

echo All services started.
